package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ciaojian.core.model.group.Save;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("d_order_receipt_address")
public class OrderReceiptAddress extends Model<OrderReceiptAddress> {
    @ApiModelProperty("订单ID")
    @NotNull(message = "请输入订单ID", groups = Save.class)
    @TableId(type = IdType.INPUT)
    private Integer orderId;

    @ApiModelProperty("收货人")
    @NotBlank(message = "请填写收货人", groups = Save.class)
    private String receiver;

    @ApiModelProperty("收货手机号")
    @NotBlank(message = "请填写联系人手机号", groups = Save.class)
    private String receiptPhone;

    @ApiModelProperty("省")
    @NotBlank(message = "请选择省份", groups = Save.class)
    private String province;

    @ApiModelProperty("市")
    @NotBlank(message = "请选择市", groups = Save.class)
    private String city;

    @ApiModelProperty("区")
    @NotBlank(message = "请选择区", groups = Save.class)
    private String district;

    @ApiModelProperty("详细地址")
    @NotBlank(message = "请输入详细地址", groups = Save.class)
    private String detailAddress;

    @ApiModelProperty("状态 0未发货 1处理中 2已发货")
    private Integer status;

    @ApiModelProperty("快递类型")
    private String expressType;

    @ApiModelProperty("快递单号")
    private String express;

    @ApiModelProperty("备注")
    private String remark;

    private Date createTime;
}
